package LECONGHAU.OOP.DEMO;

public class StudentView {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//1.khai bao doi tuong
		/*
		 * cu phap tao ra doi tuong
		 * <ten lop doi tuong> <ten doi tuong> =new <ten lop doi tuong>([???])
		 * */
		//ko tham so
		Student sv01=new Student();
		Student sv02=new Student();
		//co tham so
		Student sv03=new Student(100, "le cong hau", 10);
		Student sv04=new Student(200, "le cong hau2", 10);
		//hien thi thong tin cua doi tuong
		System.out.println("----sv01---------");
		System.out.println("+rollnuber: "+sv01.getRollNumber());
		System.out.println("+fullname: "+sv01.getFullName());
		System.out.println("+mark: "+sv01.getMark());
		
		System.out.println("----sv02---------");
		System.out.println("+rollnuber: "+sv02.getRollNumber());
		System.out.println("+fullname: "+sv02.getFullName());
		System.out.println("+mark: "+sv02.getMark());
		
		System.out.println("----sv03---------");
		System.out.println("+rollnuber: "+sv03.getRollNumber());
		System.out.println("+fullname: "+sv03.getFullName());
		System.out.println("+mark: "+sv03.getMark());
		System.out.println("----sv04---------");
		System.out.println("+rollnuber: "+sv04.getRollNumber());
		System.out.println("+fullname: "+sv04.getFullName());
		System.out.println("+mark: "+sv04.getMark());
		 System.out.println("-------- SV01 ----------");
	        System.out.println("+ Đi Học: "+ sv01.dihoc());
	        System.out.println("+ Tốc độ bay: "+ sv01.bay(200) +"km/h");
	}

}
